package androidx.persistence.access;

import java.lang.reflect.Field;

import org.ecype.diego.ContractContentProvider;

import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;

public interface UriProcessor {

	String URI_DIR = "vnd.android.cursor.dir/";
	String URI_ITEM = "vnd.android.cursor.item/";

	void setup(ContractContentProvider provider, Field field);

	Uri insert(Uri uri, Uri notifyUri, ContentValues values);

	int bulkInsert(Uri uri, Uri notifyUri, ContentValues[] values);
	
	String getType(Uri uri);

	Cursor query(Uri uri, Uri notifyUri, String[] projection, String selection, String[] selectionArgs, String sortOrder);

	int delete(Uri uri, Uri notifyUri, String selection, String[] selectionArgs);

	int update(Uri uri, Uri notifyUri, ContentValues values, String selection, String[] selectionArgs);
	
}
